mtx_inverse Interface

public interface mtx_inverse

Module Procedures

private pure function mtx_inverse_dbl(a) result(rst)

Computes the inverse of a square matrix.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The N-by-N matrix to invert.

Return Value real(kind=real64), allocatable, dimension(:,:)

The N-by-N inverted matrix.

private pure function mtx_inverse_cmplx(a) result(rst)

Computes the inverse of a square matrix.

Arguments

Type IntentOptional Attributes Name
complex(kind=real64), intent(in), dimension(:,:) :: a

The N-by-N matrix to invert.

Return Value complex(kind=real64), allocatable, dimension(:,:)